package com.online.service.user.Impl;

import com.online.dao.user.Impl.billDaoImpl;
import com.online.dao.user.billDao;
import com.online.pojo.Bill;
import com.online.service.user.billService;

import java.sql.SQLException;
import java.util.List;

public class billServiceImpl implements billService {

    public List<Bill> select(List<Bill> bill, String user_name) throws SQLException {
        billDao billDao=new billDaoImpl();
        return billDao.select(bill,user_name);
    }

    public boolean del(int id) throws SQLException {
        billDao billDao=new billDaoImpl();
        return billDao.del(id);
    }

    public boolean update(String user_name) throws SQLException {
        billDao billDao=new billDaoImpl();
        return billDao.update(user_name);
    }

    public List<Bill> selectBilled(List<Bill> bill, String user_name) throws SQLException {
        billDao billDao=new billDaoImpl();
        return billDao.selectBilled(bill,user_name);
    }
}
